import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'
import i18n from './utils/languages'


/*每个页面公共css */
import "@/static/styles/flex.scss";
import "@/static/styles/global.scss";
import "@/static/styles/var.scss";


const app = createApp(App)

// const pinia = createPinia()
// pinia.use(piniaPluginPersistedstate)

app.use(createPinia().use(piniaPluginPersistedstate)) // 新增使用piniaPluginPersistedstate

app.use(i18n) // 新增使用i18n

app.use(router)

app.mount('#app')
